<%@ taglib prefix="t" tagdir="/WEB-INF/tags"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="spring" uri="http://www.springframework.org/tags"%>
<t:wrapper title="${title} ${course.name}">
	<jsp:body>
		<div id="navigation">
			<a href="javascript:history.back()">&laquo; <spring:message
					code="content.general.back" /></a>
			<button style="margin: 0 5px; margin-left: 0;"
				onclick="location.href='<c:url value="/course/${course.id}/forum/new_topic"/>'">
				<spring:message code="forum.button.new_topic" />
			</button>
		</div>
		<c:choose>
			<c:when test="${topics.size() > 0}">
				<ul id="overview">
					<c:forEach items="${topics}" var="topic">
						<li><a
							href="<c:url value="/course/${course.id}/forum/${topic.id}"/>"><c:out value="${topic.title}"/></a></li>
					</c:forEach>
				</ul>
			</c:when>
			<c:otherwise>
					<spring:message code="forum.no_topics" />
			</c:otherwise>
		</c:choose>
	</jsp:body>
</t:wrapper>